<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>登录管理后台</title>
    {% load staticfiles %}
    <link href="{% static "css/bootstrap.min.css" %}" rel="stylesheet">
    <style>
        body{
            background: #ddd;
        }
        .container{
            width: 400px;
            padding-top: 200px;
        }
        h1{
            margin-bottom: 40px;
        }
        .message{
            display: inline-block;
            margin: 0 0 20px;
            background:rgb(253, 253, 177);
            padding: 5px 10px;
            border-radius: 4px;
            color:red;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="login-box">
            <h1 class="text-center">登录管理后台</h1>
            {% if message %}<div class="text-center"><span class="message">{{message}}</span></div>{% endif %}
            <form class="login-form" id="loginForm" action="/dashboard/" method="post">
                <div class="form-group">
                    <input type="text" required name="username" id="usernameInput" class="form-control" placeholder="用户名">
                </div>
                <div class="form-group">
                    <input type="password" required name="passwd" id="passwdInput" class="form-control" placeholder="密码">
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-default btn-block">登录</button>
                </div>
                {% csrf_token %}
            </form>
        </div>
    </div>
</body>
</html>